<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link href='/pintuan/Public/Member/css/global.css' rel='stylesheet' type='text/css' />
<link href='/pintuan/Public/Member/css/main.css' rel='stylesheet' type='text/css' />

<script type='text/javascript' src='/pintuan/Public/Member/js/jquery-1.7.2.min.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/global.js'></script>
<link href='/pintuan/Public/Member/css/wechat.css' rel='stylesheet' type='text/css' />
<!--[if lte IE 9]><script src="__PUBIC__/Member/js/jquery.watermark-1.3.js"></script><![endif]-->
<script type='text/javascript' src='/pintuan/Public/Member/js/wechat.js'></script>
<script type='text/javascript'>
var web_domain='/pintuan';
var static_domain='/pintuan';
var img_domain='/pintuan';
var _PUBLIC_ = '/pintuan/Public';
var _FILE_ = '<?php echo U('Index/ajaxFileUpload');?>';
var domain={
        www:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        static:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        img:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        file:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        kf:'<?php echo C('WEB_ABSOLUTE_URL');?>'
};
</script>

    <script type='text/javascript' src='/pintuan/Public/Member/js/plugin/dragsort/dragsort-0.5.1.min.js'></script>
    <script type='text/javascript'>
        $(document).ready(wechat_obj.shopping_init);
    </script>

</head>

<body>
	
	
	<div id="iframe_page">
		<div class="iframe_content">
			<div class="r_nav">
				<ul>
					<li class="<?php if((ACTION_NAME) == "index"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/index');?>">首次关注设置</a></li>
					<li class="<?php if((ACTION_NAME) == "classify"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/classify');?>">自定义菜单设置</a></li>
					<li class="<?php if((ACTION_NAME) == "keyword"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/keyword');?>">关键词回复</a></li>
					<li class="<?php if((ACTION_NAME) == "token"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/token');?>">微信接口配置</a></li>
					<li class="<?php if((ACTION_NAME) == "auth"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/auth');?>">微信授权配置</a></li>
					<li class="<?php if((ACTION_NAME) == "pay"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/pay');?>">运费&支付管理</a></li>
				</ul>
			</div>

		
		

			
<div id="shopping" class="r_con_wrap">
	<table width="100%" align="center" border="0" cellpadding="5" cellspacing="0" class="r_con_table">
		<thead>
			<tr>
				<td width="34%">支付方式管理</td>
			<!--<td width="33%">运费管理</td>
				<td width="33%">自定义服务区域</td> -->
			</tr>
		</thead>
		<tbody>
			<tr>
				<td valign="top" class="payment">
					<form id="wechat_payment_form">
						<ul>
							<li>
								<h1>微信支付<span><input type="checkbox" name="PaymentWxpayEnabled" value="1"<?php if(($pay['configs']['wxpay']['enable']) == "1"): ?>checked<?php endif; ?>>启用</span></h1>
								<dl>
<!-- 										<dd>
											<label>微支付版本：</label>
											<div class="input">
												<div class="blank6"></div>
												<input type="radio" name="PaymentWxpayVersion" value="0"> 旧版本&nbsp;&nbsp;
												<input type="radio" name="PaymentWxpayVersion" value="1" checked=""> 新版本
											</div>
											<div class="clear"></div>
										</dd> -->
									<dd class="v0" style="display: none;">
										<label>商户号PartnerId：</label>
										<div class="input"><input type="text" class="form_input" name="PaymentWxpayPartnerId" value="" maxlength="10"></div>
										<div class="clear"></div>
									</dd>
									<dd class="v1" style="display: block;">
										<label>微信支付商户号：</label>
										<div class="input"><input type="text" class="form_input" name="PaymentWxpayMchId" value="<?php echo ($pay['configs']['wxpay']['mchid']); ?>" maxlength="10"></div>
										<div class="clear"></div>
									</dd>
									<dd>
										<label>密钥PartnerKey：</label>
										<div class="input"><input type="text" class="form_input" name="PaymentWxpayPartnerKey" value="<?php echo ($pay['configs']['wxpay']['partnerkey']); ?>" maxlength="32"></div>
										<div class="clear"></div>
									</dd>
									<dd class="v0" style="display: none;">
										<label>PaySignKey：</label>
										<div class="input"><input type="text" class="form_input" name="PaymentWxpayPaySignKey" value="" maxlength="128"></div>
										<div class="clear"></div>
									</dd>
									<dd>还需到“<a href="<?php echo U('Wechat/auth');?>">微信接口设置</a>”设置“AppId”和“AppSecret”</dd>
								</dl>
							</li>
<!-- 						<li>
								<h1>易宝支付<span><input type="checkbox" value="1" name="PaymentYeepayEnabled">启用</span></h1>
								<dl style="display: none;">
									<dd>
										<label>商户编号：</label>
										<div class="input"><input type="text" class="form_input" name="PaymentYeepayAccount" value=""></div>
										<div class="clear"></div>
									</dd>
									<dd>
										<label>商户私钥：</label>
										<div class="input"><input type="text" class="form_input" name="PaymentYeepayPrivateKey" value=""></div>
										<div class="clear"></div>
									</dd>
									<dd>
										<label>商户公钥：</label>
										<div class="input"><input type="text" class="form_input" name="PaymentYeepayPublicKey" value=""></div>
										<div class="clear"></div>
									</dd>
									<dd>
										<label>易宝公钥：</label>
										<div class="input"><input type="text" class="form_input" name="PaymentYeepayYeepayPublicKey" value=""></div>
										<div class="clear"></div>
									</dd>
									<dd>
										<label>商品类别码：</label>
										<div class="input"><input type="text" class="form_input" name="PaymentYeepayProductCatalog" value="7"></div>
										<div class="clear"></div>
									</dd>
								</dl>
							</li> -->
<!-- 						<li>
								<h1>通联支付<span><input type="checkbox" value="1" name="PaymentAllinpayEnabled">启用</span></h1>
								<dl style="display: none;">
									<dd>
										<label>商户编号：</label>
										<div class="input"><input type="text" class="form_input" name="PaymentAllinpayMerchantId" value=""></div>
										<div class="clear"></div>
									</dd>
									<dd>
										<label>支付密钥：</label>
										<div class="input"><input type="text" class="form_input" name="PaymentAllinpayKey" value=""></div>
										<div class="clear"></div>
									</dd>
									<dd>
										<label>支付证书：</label>
										<div class="input"><textarea name="PaymentAllinpayPublicKey" class="textarea"></textarea></div>
										<div class="clear"></div>
									</dd>
								</dl>
							</li> -->
<!-- 						<li>
								<h1>支付宝<span><input type="checkbox" value="1" name="PaymentAlipayEnabled">启用</span></h1>
								<dl style="display: none;">
									<dd>
										<label>合作身份ID：</label>
										<div class="input"><input type="text" class="form_input" name="PaymentAlipayPartner" value="2088302099902273" maxlength="16"></div>
										<div class="clear"></div>
									</dd>
									<dd>
										<label>安全检验码：</label>
										<div class="input"><input type="text" class="form_input" name="PaymentAlipayKey" value="v9t75nvp6xn1bveryoqiwyzd5f4jc5kp" maxlength="32"></div>
										<div class="clear"></div>
									</dd>
									<dd>
										<label>支付宝账号：</label>
										<div class="input"><input type="text" class="form_input" name="PaymentAlipayAccount" value="272670738@qq.com" maxlength="30"></div>
										<div class="clear"></div>
									</dd>
								</dl>
							</li> -->
							<li>
								<h1>线下支付<span><input type="checkbox" value="1" <?php if(($pay['configs']['offline']['enable']) == "1"): ?>checked<?php endif; ?> name="PaymentInfoEnabled">启用</span></h1>
								<dl >
									<dd>
										<label>收款帐号信息：</label>
										<div class="input"><textarea name="PaymentInfo" class="textarea"><?php echo ($pay['configs']['offline']['account']); ?></textarea></div>
										<div class="clear"></div>
									</dd>
								</dl>
							</li>
						</ul>
						<div class="submit"><input type="submit" class="btn_ok" name="submit_button" value="提交保存"></div>
						<input type="hidden" name="do_action" value="<?php echo U('Wechat/pay');?>">
						<input type="hidden" name="ajax" value="1">
					</form>
				</td>
<!-- 			<td valign="top" class="shipping">
					<dl data-listidx="0">
							<dd sid="141" style="cursor: pointer;">
								<div>
									<a href="http://www.ptweixin.com/member/?m=wechat&a=shopping&SId=141" title="修改"><img src="mod.gif" align="absmiddle"></a>
									<a href="http://www.ptweixin.com/member/?m=wechat&a=shopping&do_action=wechat.shopping_shipping_del&SId=141" title="删除" onclick="if(!confirm(&#39;删除后不可恢复，继续吗？&#39;)){return false};"><img src="del.gif" align="absmiddle"></a>
									韵达【￥2.00】
								</div>
							</dd>
							<dd sid="1153" style="cursor: pointer;">
								<div>
									<a href="http://www.ptweixin.com/member/?m=wechat&a=shopping&SId=1153" title="修改"><img src="mod.gif" align="absmiddle"></a>
									<a href="http://www.ptweixin.com/member/?m=wechat&a=shopping&do_action=wechat.shopping_shipping_del&SId=1153" title="删除" onclick="if(!confirm(&#39;删除后不可恢复，继续吗？&#39;)){return false};"><img src="del.gif" align="absmiddle"></a>
									顺风【￥20.00】
								</div>
							</dd>
					</dl>
					<form id="wechat_shipping_form" class="">
						<h1>添加运费</h1>
						<div class="form">
							<div class="opt_item">
								<label>快递公司：</label>
								<span class="input"><input type="text" name="Shipping" value="" class="form_input" size="15" maxlength="30" notnull=""> <font class="fc_red">*</font></span>
								<div class="clear"></div>
							</div>
							<div class="opt_item">
								<label>运送价格：</label>
								<span class="input">￥<input type="text" name="Price" value="" class="form_input" size="5" maxlength="10"></span>
								<div class="clear"></div>
							</div>
							<div class="opt_item">
								<label></label>
								<span class="input"><input type="submit" class="btn_ok" name="submit_button" value="添加运费"></span>
								<div class="clear"></div>
							</div>
						</div>
						<input type="hidden" name="do_action" value="wechat.shopping_shipping">
						<input type="hidden" name="SId" value="0">
						<input type="hidden" name="ajax" value="1">
					</form>
				</td> -->
<!-- 			<td valign="top" class="last address">
					<form id="wechat_service_area_form">
						<ul>
							<li>
								<h1>自定义服务区域 <span><input type="checkbox" value="1" name="IsAddress" checked="">启用</span></h1>
								<dl>
									<dd>服务区域（每行填写一个）<br><textarea name="Area">和平区
南开区</textarea></dd>
								</dl>
							</li>
						</ul>
						<div class="submit"><input type="submit" class="btn_ok" name="submit_button" value="提交保存"></div>
						<input type="hidden" name="do_action" value="wechat.shopping_service_area">
						<input type="hidden" name="ajax" value="1">
					</form>
				</td> -->
			</tr>
		</tbody>
	</table>
</div>



			
			</div>
			</div>
</body>
</html>